home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / cdedit / toc.h < prev   
Encoding:
C/C++ Source or Header  |  1993-06-15  |  1.0 KB  |  38 lines

  1. /*************************************************************
  2.  *                                                           *
  3.  *                     file: toc.c                           *
  4.  *                                                           *
  5.  *************************************************************/
  6.  
  7. /*
  8.  * Copyright (C) 1988, 1989 Sun Microsystems, Inc.
  9.  */
  10.  
  11. /* @(#)toc.h @(#)toc.h 1.3 89/11/14 Copyr 1989 Sun Microsystem. */
  12.  
  13. /*
  14.  * This file contains the typedef's of toc data structure
  15.  */
  16.  
  17. typedef struct track_entry {
  18.     int    track_number;        
  19.     int    control;        /* Bit 0-3 are valid bits */
  20.     Msf    msf;
  21.     Msf    duration;
  22. } *Track_entry;
  23.  
  24. typedef struct toc {
  25.     int    start_track;        /* starting track number */
  26.     int    end_track;        /* ending track number */
  27.     Track_entry    *toc_list;    /* list of track entries */
  28.     int    size;            /* size of the list */
  29.     Msf    total_msf;        /* the length of the disc */
  30. } *Toc;
  31.  
  32. extern     Toc    init_toc();
  33. extern    void    add_track_entry();
  34. extern    void    destroy_toc();
  35. extern    Msf    get_track_duration();
  36. extern    int    get_track_control();
  37. extern    Msf    get_track_msf();
  38.